package com.bdqn.membersystem.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.bdqn.membersystem.mapper.UserPointMapper;
import com.bdqn.membersystem.pojo.UserPoint;
import com.bdqn.membersystem.service.UserPointService;
/**
* 作者：姚岳城
* 日期：2020/4/3 16:53
*/

@Service
public class UserPointServiceImpl implements UserPointService{

    @Resource
    private UserPointMapper userPointMapper;

    @Override
    public int deleteByPrimaryKey(String pointId) {
        return userPointMapper.deleteByPrimaryKey(pointId);
    }

    @Override
    public int insertSelective(UserPoint record) {
        return userPointMapper.insertSelective(record);
    }

    @Override
    public UserPoint selectByPrimaryKey(String pointId) {
        return userPointMapper.selectByPrimaryKey(pointId);
    }

    @Override
    public int updateByPrimaryKeySelective(UserPoint record) {
        return userPointMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateBatch(List<UserPoint> list) {
        return userPointMapper.updateBatch(list);
    }

    @Override
    public int batchInsert(List<UserPoint> list) {
        return userPointMapper.batchInsert(list);
    }

    @Override
    public int insertOrUpdate(UserPoint record) {
        return userPointMapper.insertOrUpdate(record);
    }

    @Override
    public int insertOrUpdateSelective(UserPoint record) {
        return userPointMapper.insertOrUpdateSelective(record);
    }

}
